﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OutFaultDetailEdit.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.OutFault.OutFaultDetailEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Expires" content="0" /> 
    <meta http-equiv="Cache-Control" content="no-cache" /> 
    <meta http-equiv="Pragma" content="no-cache" />
    <title></title>
    <base target="_self" />
    <style type="text/css">
        #editTable
        {
            background-color: #000000;            
        }
        #editTable td
        {
            background-color: #ffffff;
            padding: 10px 10px 10px 10px;
        }
    </style>
    <script type="text/javascript">
        function showPage() {
            var retValue = window.showModalDialog(encodeURI("SelectItemCode.aspx"), "", "dialogWidth=800px;dialogHeight=600px");
            if (retValue != "" && typeof (retValue) != "undefined") {
                var retValues = retValue.split('|');
                document.getElementById('<%=txtItemCode.ClientID%>').value = retValues[0];
                document.getElementById('<%=hidItemCode.ClientID%>').value = retValues[0];
                document.getElementById('<%=txtItemName.ClientID%>').value = retValues[1];
                document.getElementById('<%=hidItemName.ClientID%>').value = retValues[1];
            }
            return false;
        }
    </script>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div>
    <table id="editTable" width="600px" border="0" cellpadding="0" cellspacing="1" align="center">
      <tr>
        <td width="150px">编号</td>
        <td>
            <asp:TextBox ID="txtItemCode" runat="server" Width="300px" ReadOnly="True"></asp:TextBox>
            <input id="Button1" type="button" value="选择" onclick="showPage()" />
            <asp:HiddenField ID="hidItemCode" runat="server" />
        </td>
      </tr>
      <tr>
        <td>名称</td>
        <td>
            <asp:TextBox ID="txtItemName" runat="server" Width="300px" ReadOnly="True"></asp:TextBox>
            <asp:HiddenField ID="hidItemName" runat="server" />
          </td>
      </tr>
      <tr>
        <td>数量</td>
        <td>
            <asp:TextBox ID="txtCount" runat="server" Width="300px"></asp:TextBox>
          </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
            <asp:Button ID="btnOK" runat="server" Text="确定" Width="60px" 
                onclick="btnOK_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="取消" Width="60px" 
                onclick="btnCancel_Click" CausesValidation="False" />
          </td>        
      </tr>
    </table>
    </div>
    </form>
</body>
</html>
